/**                                   
 *
 */
package com.mdcorbri.helicoptobot.mediators
{
	
	
	import com.mdcorbri.helicoptobot.model.ApplicationModel;
	
	import flash.events.Event;
	
	import mx.core.Application;
	
	/**
	 * Handles all events, data manipulation, data bindings, and whatever else it's 
	 * corresponding View can dish out.
	 */
	public class ApplicationViewMediator extends AbstractViewMediator
	{
		
		/**
		 * Constructor.
		 */
		public function ApplicationViewMediator()
		{
			super();
		}
		
		
		/**
		 * Since the AbstractViewMediator sets the view via Autowiring in Swiz,
		 * we need to create a local getter to access the underlying, expected view
		 * class type.
		 */
		public function get view():Helicoptobot
		{
			return Application.application as Helicoptobot
		}
		
		
		override protected function setViewListeners():void
		{
			super.setViewListeners();
		}
		
		
		override protected function setViewDataBindings():void
		{
			super.setViewDataBindings();
		}
		
		override protected function setNativeAIRFunctionality():void
		{
			super.setNativeAIRFunctionality();
		}
		
		private var _database:String;
		public function set database(value:String):void
		{
			
		}
		public function get database():String
		{
			return _database;
		}
		
		/** ************************************************************************
		 *                              security
		 *  ************************************************************************/
		override protected function setViewSecurity():void
		{
			super.setViewSecurity();
		}
		
		/** ************************************************************************
		 *                              handlers
		 *  ************************************************************************/
		
		 
		/** ************************************************************************
		 *                              mediators
		 *  ************************************************************************/

		 
		/** ************************************************************************
		 *                              utils
		 *  ************************************************************************/
		 
		
		 
		/**
		 * Remove any listeners we've created.
		 */
		override protected function cleanup( event:Event ):void
		{
			super.cleanup(event);
		}
	}
}